package com.spa.application.dto.admin;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spa.application.converter.AmountConverter;
import com.spa.application.converter.IsDelConverter;
import lombok.Data;

@Data
@JsonInclude
public class MassageListExportDTO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ExcelIgnore
    @ExcelProperty(value = "ID")
    private Long id;

    @ExcelProperty(value = "项目名称")
    @ColumnWidth(value = 25)
    private String name;

    @ExcelProperty(value = "服务时长 分钟")
    @ColumnWidth(value = 20)
    private Integer duration;

    @ExcelProperty(value = "金额",converter = AmountConverter.class)
    private String price;

    @ExcelProperty(value = "折扣金额",converter = AmountConverter.class)
    @ColumnWidth(value = 20)
    private String discountPrice;

    @ExcelIgnore
    private String cover;

    @ExcelProperty(value = "推荐语")
    @ColumnWidth(value = 30)
    private String recommendations;

    @ExcelProperty(value = "上下架",converter = IsDelConverter.class)
    private Integer isDel;
}
